public class Array {
    public static void main(String[] args) {
        //arraycopy
        String[] sourceArray = new String[]{"1","2","3","4","5","6","7","8"};
        String[] targetArray = new String[10];
        //第一个参数为源数组，第二个参数为复制的起始下标，第三个参数为目标数组，第四个为目标数组接收数据的起始下标，第五个为复制数组的长度
        System.arraycopy(sourceArray,2,targetArray,3,2);

        for (String a:targetArray){
            System.out.println(a);
        }
    }
}
